package com.gengzp.ops;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @ClassName OpsApplication
 * @Description
 * @Author gengzp
 * @Date 2025/5/31 21:52
 */
@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan({"com.gengzp.common",
        "com.gengzp.ops",
        "com.gengzp.permission",
        "com.gengzp.rpc",
        "com.gengzp.api",
        "com.gengzp.mq"})
@MapperScan("com.gengzp.ops.mapper")
public class OpsApplication {

    public static void main(String[] args) {
        long startTime = System.currentTimeMillis();
        SpringApplication.run(OpsApplication.class, args);
        System.out.printf("\n======= [运维服务] ops-service 启动成功, 耗时: %sms =======\n",
                System.currentTimeMillis() - startTime);
    }

}
